package com.lwm.base;

import com.sun.xml.internal.ws.api.model.wsdl.WSDLOutput;

import java.math.BigDecimal;

/**
 * @author liweimin
 * @date 2020/9/22 16:27
 * @description
 */
public class FloatAndDouble {
    public static void main(String[] args) {
        //浮点---》有限 离散 舍入误差
        //银行使用BigDecimal
        float f = 0.1f;
        double d = 1.0/10;
        System.out.println(f==d);
        float f1 = 456446464664f;
        double d1 = f1+1;
        System.out.println(d1);
        //Unicode-----u0000 uffff
        System.out.println('a'+1);
        char c = '\u0161';
        System.out.println(c);
        //转义字符  \t
        System.out.println("\thello\nworld");
        //JDK7 feature
        int lk =10_000_000;
        //先转型再计算
    }
}
